#define _CRT_SECURE_NO_WARNINGS 1

#define MAX 1000
#define NAME_MAX 10
#define MALE_MAX 5
#define TELE_MAX 20
#define ADDR_MAX 20


#include <stdio.h>
#include <string.h>
#include <stdlib.h>

enum Option
{
	Exit,
	Add,
	Del,
	Search,
	Modify,
	Show,
	Sort
};

struct PeoInfo
{
	char name[NAME_MAX];
	char male[MALE_MAX];
	int age;
	char tele[TELE_MAX];
	char addr[ADDR_MAX];
};

struct Contact
{
	struct PeoInfo data[MAX];
	int size;
};

InitContact(struct Contact* ps);
AddContact(struct Contact* ps);
ShowContact(const struct Contact* ps);
DelContact(struct Contact* ps);
SearchContact(const struct Contact* ps);
ModifyContact(struct Contact* ps);
SortContact(const struct Contact* ps);